import request from '../utils/request.js';

export const test = (data) => {
    return request({
        url: '/blog/index',
        type: 'get',
        data: data
    });
}
export const login = (data) => {
    return request({
        url: '/user/login',
        type: 'post',
        data: data
    });
};
export const logout = () => {
    return request({
        url: '/user/logout',
        type: 'get',
    });
};
export const alreadyUsername = (params) => {
    return request({
        url: '/user/alreadyUsername',
        type: 'get',
        data: params
    });
};
export const register = (data) => {
    return request({
        url: '/user/register',
        type: 'post',
        data: data
    });
};
export const getMyInfo = (params) => {
    return request({
        url: '/user/getMyInfo',
        type: 'get',
        data: params
    });
};
